#!/usr/bin/env bash

cat > ~/.vimrc <<EOF
set nocompatible
filetype indent on
filetype plugin on
set tabstop=4
set shiftwidth=4
set autoindent
set cindent
set smartindent
set hlsearch
syntax enable
set dict=/usr/share/dict/words
if has('statusline')
   set laststatus=2
   "Broken down into easily includeable segments
   set statusline=%<%f\ " Filename
   set statusline+=%w%h%m%r " Options
   set statusline+=\ [%{&ff}/%Y] " filetype
   "ASCII/Hexadecimal value of under current cursor
   set statusline+=\ [ASCII=\%03.3b/HEX=\%02.2B]
   "Right aligned file nav info
   set statusline+=%=%-14.(%l,%c%V%)\ %p%%
endif
EOF

echo "alias vi='vim'" >> ~/.bashrc
. ~/.bashrc
. ~/.vimrc
